<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:64:"/data/public/../application/index/view/csmmeet/frame1/index.html";i:1601279754;s:48:"/data/application/index/view/layout/default.html";i:1591691133;s:45:"/data/application/index/view/common/meta.html";i:1588765311;s:48:"/data/application/index/view/common/sidenav.html";i:1599809389;s:47:"/data/application/index/view/common/script.html";i:1588765311;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?> – <?php echo $site['name']; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<?php if(isset($keywords)): ?>
<meta name="keywords" content="<?php echo $keywords; ?>">
<?php endif; if(isset($description)): ?>
<meta name="description" content="<?php echo $description; ?>">
<?php endif; ?>

<link rel="shortcut icon" href="/assets/img/favicon.ico" />

<link href="/assets/css/frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config: <?php echo json_encode($config); ?>
    };
</script>
        <link href="/assets/css/user.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
    </head>

    <body>

        <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                  <!--  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#header-navbar"> -->
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#"><?php echo $site['name']; ?></a>
                </div>
                <!-- <div class="collapse navbar-collapse" id="header-navbar">
                     <ul class="nav navbar-nav navbar-right">
                         <li><a href="<?php echo url('/'); ?>"><?php echo __('Home'); ?></a></li>
                         <li class="dropdown">
                             <?php if($user): ?>
                             <a href="<?php echo url('user/index'); ?>" class="dropdown-toggle" data-toggle="dropdown" style="padding-top: 10px;height: 50px;">
                                 <span class="avatar-img"><img src="<?php echo cdnurl($user['avatar']); ?>" alt=""></span>
                             </a>
                             <?php else: ?>
                             <a href="<?php echo url('user/index'); ?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo __('User center'); ?> <b class="caret"></b></a>
                             <?php endif; ?>
                             <ul class="dropdown-menu">
                                 <?php if($user): ?>
                                 <li><a href="<?php echo url('user/index'); ?>"><i class="fa fa-user-circle fa-fw"></i><?php echo __('User center'); ?></a></li>
                                 <li><a href="<?php echo url('user/profile'); ?>"><i class="fa fa-user-o fa-fw"></i><?php echo __('Profile'); ?></a></li>
                                 <li><a href="<?php echo url('user/changepwd'); ?>"><i class="fa fa-key fa-fw"></i><?php echo __('Change password'); ?></a></li>
                                 <li><a href="<?php echo url('user/logout'); ?>"><i class="fa fa-sign-out fa-fw"></i><?php echo __('Sign out'); ?></a></li>
                                 <?php else: ?>
                                 <li><a href="<?php echo url('user/login'); ?>"><i class="fa fa-sign-in fa-fw"></i> <?php echo __('Sign in'); ?></a></li>
                                 <li><a href="<?php echo url('user/register'); ?>"><i class="fa fa-user-o fa-fw"></i> <?php echo __('Sign up'); ?></a></li>
                                 <?php endif; ?>

                             </ul>
                         </li>
                     </ul>
                 </div> -->
            </div>
        </nav>

        <main class="content">
            <style type="text/css">
    table, th, td {
        text-align: center;
        line-height: 28px;
        font-size: 14px;
    }

    .dalou {
        font-weight: bold !important;
        text-align: left;
        padding-left: 10px;
    }

    .currentinfo {
        text-align: left;
        color: red;
    }

    .used {
        background-color: #999999 !important;
        text-align: center;
        font-weight: bold !important;
    }
    .used2 {
        background-color: red !important;
        text-align: center;
        font-weight: bold !important;
    }
    .hnormal {
        width: 6%;
        text-align: center;
    }

    .hevening {
        width: 6%;
        text-align: center;
        display: none;
    }

    .hmorning {
        width: 6%;
        text-align: center;
        display: none;
    }

    th {
        background-color: #c4c4c4 !important;
    }

    [v-cloak] {
        display: none;
    }

    #datetimepicker1 {
        width: 180px;
        text-align: right;
    }

    .header {
        position: relative;
    }

    .headerright {
        position: absolute;
        right: 0;
        bottom: 10px;
    }

    .sp-text-align-right {
        text-align: right;
    }

    .foottimeline a {
        padding-left: 5px;
    }
</style>

<link rel="stylesheet"
      href="/assets/addons/csmmeet/mo/css/app-pch5.css"
>

<div class="container mt-20" id="app_frame1">
    <div id="content-container" class="container">
        <div class="row">
            <?php if($_nosidenav_=='1'): ?>
            <div class="col-md-12">
                <?php else: ?>
                <div class="col-md-3"><div class="sidenav">
    <?php echo hook('user_sidenav_before'); ?>
    <ul class="list-group">
        <li class="list-group-heading"><?php echo __('Member center'); ?></li>
        <li class="list-group-item <?php echo $config['actionname']=='index'?'active':''; ?>"> <a href="<?php echo url('user/index'); ?>"><i class="fa fa-user-circle fa-fw"></i> 个人中心</a> </li>
        <li class="list-group-item <?php echo $config['actionname']=='curriculum'?'active':''; ?>"> <a href="<?php echo url('user/curriculum'); ?>"><i class="fa fa-user-o fa-fw"></i> 课程表</a> </li>
        <li class="list-group-item <?php echo $config['actionname']=='scorelog'?'active':''; ?>"> <a href="<?php echo url('user/scorelog'); ?>"><i class="fa fa-user-o fa-fw"></i> 学生日志</a> </li>
    </ul>
    <?php echo hook('user_sidenav_after'); ?>
</div></div>
                <div class="col-md-9">
                    <?php endif; ?>
                    <div class="panel panel-default panel-user" v-cloak>
                        <div class="panel-body">
                            <div class="page-header header">
                                <h2>{{title}}</h2>
                                <span class="headerright">
                                  <p style="font-size:12px;font-weight: 700">  <span style="color:red">红色</span>：自己 <span style="color:#999999">　灰色</span>：他人 </p>
							</span>
                            </div>

                            <div class="page-header header">
								<span class='input-group date' id='datetimepicker1'>
									<input type='text' class="timeInput form-control"
                                           id="datepicker_input"/> <span class="input-group-addon">
										<span class="glyphicon glyphicon-calendar"></span>
									</span>
								</span>
							</span>
                            </div>
                            <div class="row">
                                <table width="100%" border="1">
                                    <tbody v-for="(item,key) in buildings">
                                    <tr>
                                        <td colspan="25" class="dalou">大楼：{{key}}</td>
                                    </tr>
                                    <tr>
                                        <th style="width: 15%;"></th>
                                        <!--<th class="hmorning">0</th>
                                        <th class="hmorning">1</th>
                                        <th class="hmorning">2</th>
                                        <th class="hmorning">3</th>
                                        <th class="hmorning">4</th>
                                        <th class="hmorning">5</th>
                                        <th class="hmorning">6</th>
                                        <th class="hmorning">7</th>-->
                                        <?php if(is_array($school_schedule_time) || $school_schedule_time instanceof \think\Collection || $school_schedule_time instanceof \think\Paginator): $i = 0; $__LIST__ = $school_schedule_time;if( count($__LIST__)==0 ) : echo "没有数据" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                        <th class="hnormal"><?php echo preg_replace('# #', '', $vo['start_date']); ?></th>
                                        <?php endforeach; endif; else: echo "没有数据" ;endif; ?>
                                        <!--<th class="hevening">19</th>
                                        <th class="hevening">20</th>
                                        <th class="hevening">21</th>
                                        <th class="hevening">22</th>
                                        <th class="hevening">23</th> -->
                                    </tr>
                                    <tr v-for="(item2,key2) in item">
                                        <td>{{item2.name}}</td>
                                        <!--<td is="td-applyhour" hour="0" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h0"
                                            addclass="hmorning"></td>
                                        <td is="td-applyhour" hour="1" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h1"
                                            addclass="hmorning"></td>
                                        <td is="td-applyhour" hour="2" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h2"
                                            addclass="hmorning"></td>
                                        <td is="td-applyhour" hour="3" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h3"
                                            addclass="hmorning"></td>
                                        <td is="td-applyhour" hour="4" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h4"
                                            addclass="hmorning"></td>
                                        <td is="td-applyhour" hour="5" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h5"
                                            addclass="hmorning"></td>
                                        <td is="td-applyhour" hour="6" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h6"
                                            addclass="hmorning"></td>
                                        <td is="td-applyhour" hour="7" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h7"
                                            addclass="hmorning"></td> -->
                                        <?php if(is_array($school_schedule_time) || $school_schedule_time instanceof \think\Collection || $school_schedule_time instanceof \think\Paginator): $id = 0; $__LIST__ = $school_schedule_time;if( count($__LIST__)==0 ) : echo "没有数据" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($id % 2 );++$id;?>
                                        <td is="td-applyhour" hour="<?php echo $vo['id']; ?>" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h<?php echo $id; ?>"
                                            addclass="hnormal"></td>
                                        <?php endforeach; endif; else: echo "没有数据" ;endif; ?>
                                        <!--<td is="td-applyhour" hour="19" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h19"
                                            addclass="hevening"></td>
                                        <td is="td-applyhour" hour="20" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h20"
                                            addclass="hevening"></td>
                                        <td is="td-applyhour" hour="21" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h21"
                                            addclass="hevening"></td>
                                        <td is="td-applyhour" hour="22" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h22"
                                            addclass="hevening"></td>
                                        <td is="td-applyhour" hour="23" :roomid="item2.id"
                                            :roomname="item2.name" :applycount="item2.h23"
                                            addclass="hevening"></td> -->
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <!--<div class="row">
                                <div
                                    class="col-md-6  col-md-offset-6 sp-rowfont sp-text-align-right foottimeline">
                                    预约时间段：
                                    <a href='javascript:void()' v-on:click="clickShow0t7">0:00-8:00</a>
                                    <a href='javascript:void()' v-on:click="clickShow8t18">8:00-18:00</a>
                                    <a href='javascript:void()' v-on:click="clickShow19t0">18:00-23:59</a>
                                </div>
                            </div> -->


                            <div class="modal fade" tabindex="-1" role="dialog"
                                 id="actionsheet">
                                <div class="modal-dialog" role="document">
                                    <div class="modal-content">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal"
                                                    aria-label="Close">
                                                <span aria-hidden="true">&times;</span>
                                            </button>
                                            <h4 class="modal-title">课室预约</h4>
                                        </div>
                                        <div class="modal-body">
                                            <div class="row">
                                                <div class="col-md-3 sp-rowfont sp-text-align-left">课室:</div>
                                                <div class="col-md-7 sp-rowfont">
                                                    <span id="apply_csmmeet_room_name"></span><input
                                                        type='hidden' id="apply_csmmeet_room_id" value=""
                                                        form-control/>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-md-3 sp-rowfont sp-text-align-left">申请日期:</div>
                                                <div class="col-md-7 sp-rowfont">
                                                    <span id="apply_applaydate_span"></span><input type='hidden'
                                                                                                   id="apply_applaydate"
                                                                                                   value=""/>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-md-3 sp-rowfont sp-text-align-left">申请时间:</div>
                                                <div class="col-md-7 sp-rowfont">
                                                    <input id="apply_beginhour" type="hidden" readonly class="form-control"
                                                           value="" size='50'>
                                                    <select id="apply_beginhoura">
                                                        <?php if(is_array($school_schedule_time) || $school_schedule_time instanceof \think\Collection || $school_schedule_time instanceof \think\Paginator): $i = 0; $__LIST__ = $school_schedule_time;if( count($__LIST__)==0 ) : echo "没有数据" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                                        <option value="<?php echo $vo['id']; ?>" disabled ><?php echo preg_replace('# #', '', $vo['start_date']); ?></option>
                                                        <?php endforeach; endif; else: echo "没有数据" ;endif; ?>
                                                    </select>
                                                </div>
                                            </div>
                                           <!-- <div class="row">
                                                <div class="col-md-3 sp-rowfont sp-text-align-left">课室名称:</div>
                                                <div class="col-md-7 sp-rowfont">
                                                    <input id="apply_meettitle" type="text" class="form-control"
                                                           value="" size='50'>
                                                </div>
                                            </div> -->
                                            <div class="row">
                                                <div class="col-md-3 sp-rowfont sp-text-align-left">监护人:</div>
                                                <div class="col-md-7 sp-rowfont">
                                                    <input id="apply_name" type="text" class="form-control"
                                                           value="" size='50'>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-md-3 sp-rowfont sp-text-align-left">联系电话:</div>
                                                <div class="col-md-7 sp-rowfont">
                                                    <input id="apply_mobile" type="text" class="form-control"
                                                           value="" size='50'>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="modal-footer">
                                            <button type="button" class="btn btn-default"
                                                    data-dismiss="modal">Close
                                            </button>
                                            <button type="button" class="btn btn-primary"
                                                    v-on:click="submitApply">提交
                                            </button>
                                        </div>
                                    </div>
                                    <!-- /.modal-content -->
                                </div>
                                <!-- /.modal-dialog -->
                            </div>
                            <!-- /.modal -->
                        </div>


                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript"
        src="/assets/addons/csmmeet/mo/js/vue.js"></script>
<script type="text/javascript"
        src="/assets/addons/csmmeet/mo/script/common/app-dict.js"></script>
<script type="text/javascript"
        src="/assets/addons/csmmeet/mo/script/common/core-api.js"></script>
<script type="text/javascript"
        src="/assets/addons/csmmeet/mo/script/pc-config.js"></script>
<script type="text/javascript"
        src="/assets/addons/csmmeet/mo/script/pc-core-api.js"></script>
        </main>

     <footer class="footer" style="clear:both">
            <p class="copyright">Copyright&nbsp;©&nbsp;2017-2020 <?php echo $site['name']; ?> All Rights Reserved <a href="http://www.beian.miit.gov.cn" target="_blank"><?php echo htmlentities($site['beian']); ?></a></p>
        </footer>

        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>

    </body>

</html>